SetMemoryCount
Sets the internal NXT memory counter (manual mapping replica)
Contents
Syntax
SetMemoryCount(port, angle)
SetMemoryCount(port, angle, handle)
Description
SetMemoryCount(port, angle)) sets the internal NXT memory counter (maual mapping replica) of the given motor port. The value port can be addressed by the symbolic constants MOTOR_A, MOTOR_B and MOTOR_C analog to the labeling on the NXT Brick. The value angle sets the value of the NXT memory counter (maunal mapping replica).
The last optional argument can be a valid NXT handle. If none is specified, the default handle will be used (call COM_SetDefaultNXT to set one).
Note:
This function is recommened for the advanced user.
Example
SetMemoryCount(MOTOR_B, 120);
See also
SetMemoryCounter, MOTOR_A, MOTOR_B, MOTOR_C
Signature
- Author: Alexander Behrens (see AUTHORS)
- Date: 2007/10/15
- Copyright: 2007-2008, RWTH Aachen University